﻿
namespace Admin.NET.Core;

/// <summary>
/// 数据连接
/// </summary>
[SugarTable(null, "数据连接")]
[SysTable]
public class SysDbLink : EntityTenant
{
    /// <summary>
    /// 连接名称
    /// </summary>
    [SugarColumn(ColumnName = "Name", ColumnDescription = "连接名称", Length = 200)]
    public string? Name { get; set; }

    /// <summary>
    /// 连接驱动
    /// </summary>
    [SugarColumn(ColumnName = "DBType", ColumnDescription = "连接驱动", Length = 50)]
    public string? DBType { get; set; }

    /// <summary>
    /// 主机地址
    /// </summary>
    [SugarColumn(ColumnName = "Host", ColumnDescription = "主机地址", Length = 50)]
    public string? Host { get; set; }

    /// <summary>
    /// 端口
    /// </summary>
    [SugarColumn(ColumnName = "Port", ColumnDescription = "端口")]
    public int? Port { get; set; }

    /// <summary>
    /// 用户
    /// </summary>
    [SugarColumn(ColumnName = "UserName", ColumnDescription = "用户", Length = 50)]
    public string? UserName { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [SugarColumn(ColumnName = "Password", ColumnDescription = "密码", Length = 50)]
    public string? Password { get; set; }

    /// <summary>
    /// 服务名称
    /// </summary>
    [SugarColumn(ColumnName = "ServiceName", ColumnDescription = "服务名称", Length = 50)]
    public string? ServiceName { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 500)]
    public string? Remark { get; set; }

    /// <summary>
    /// 模式
    /// </summary>
    [SugarColumn(ColumnName = "DBSchema", ColumnDescription = "模式", Length = 50)]
    public string? DBSchema { get; set; }

    /// <summary>
    /// 表空间
    /// </summary>
    [SugarColumn(ColumnName = "TableSpace", ColumnDescription = "表空间", Length = 50)]
    public string? TableSpace { get; set; }

    /// <summary>
    /// oracle连接参数
    /// </summary>
    [SugarColumn(ColumnName = "OracleParam", ColumnDescription = "oracle连接参数", Length = 500)]
    public string? OracleParam { get; set; }

    /// <summary>
    /// Oracle扩展开关
    /// </summary>
    [SugarColumn(ColumnName = "OracleExtend", ColumnDescription = "Oracle扩展开关")]
    public int? OracleExtend { get; set; }

    /// <summary>
    /// 创建者部门Id
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
    public long? CreateOrgId { get; set; }

    /// <summary>
    /// 创建者部门名称
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
    public string? CreateOrgName { get; set; }

}
